a83f0a540c7ec6f9e9812f816b5d8f49746dd360,tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/parseerrorhandling/ParseErrorHandlingTest.java,ParseErrorHandlingTest,testParseError3,#,67
Before Change
}
public void testParseError3() throws Exception {
Object object = getModelAndExpect("grammar a import 'holla' foo returns y::Z : name=foo #############", 4);
assertWithXtend("'foo'", "rules.first().eAllContents.typeSelect(xtextTest::RuleCall).first().rule.name", object);
}
After Change
}
public void testParseError3() throws Exception {
Grammar grammar = (Grammar) getModelAndExpect("grammar a import 'holla' foo returns y::Z : name=foo #############", 4);
AbstractRule rule = grammar.getRules().get(0);
Assignment assignment = (Assignment) rule.getAlternatives();
RuleCall call = (RuleCall) assignment.getTerminal();
assertSame(rule, call.getRule());
// assertWithXtend("'foo'", "rules.first().eAllContents().typeSelect(RuleCall).first().rule.name", grammar);
}